package com.ziroom.finance.rabbitmq.consumer;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;
import org.springframework.stereotype.Component;

@Component
public class QueueOneLitener  implements MessageListener {
    
    @Override
    public void onMessage(Message msg) {
        try{
            System.out.print("消费者：" + msg.toString());
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}